﻿/****************************** Module Header ******************************\
 * Module Name:  tUserCredit.cs
 * Module Version:  1.0.0 (2013-01-25)
 * Copyright (c) AnyEB.Com (14507247@qq.com)
 * 
 * This source is subject to the GPL License.
 * See http://www.gnu.org/licenses/gpl.html.
 * All other rights reserved.
 * 
 * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, 
 * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED 
 * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
\***************************************************************************/

using System;

namespace UCL.Data.ORM.UMD
{
	/// <summary>
    /// 用户-购物设置-积分 数据实体类
	/// </summary>
    [DBTable(Common = "用户-购物设置-积分")]
	public class tUserCredit
	{
		/// <summary>
		/// 用户帐号
		/// </summary>
		public string UserName { get { return _UserName; } set { _UserName = value; } }

        [DBColumn(Alias = "用户帐号", IsKey = true, Length = "32")]
		private string _UserName;

		/// <summary>
        /// 积分
		/// </summary>
		public decimal Credit { get { return _Credit ?? default(decimal); } set { _Credit = value; } }

        [DBColumn(Alias = "积分", CanBeNull = true)]
		private decimal? _Credit;

		/// <summary>
        /// 自定义积分1
		/// </summary>
		public decimal ExtCerdit1 { get { return _ExtCerdit1 ?? default(decimal); } set { _ExtCerdit1 = value; } }

        [DBColumn(Alias = "自定义积分1", CanBeNull = true)]
		private decimal? _ExtCerdit1;

		/// <summary>
        /// 自定义积分2
		/// </summary>
		public decimal ExtCerdit2 { get { return _ExtCerdit2 ?? default(decimal); } set { _ExtCerdit2 = value; } }

        [DBColumn(Alias = "自定义积分2", CanBeNull = true)]
		private decimal? _ExtCerdit2;

		/// <summary>
        /// 自定义积分3
		/// </summary>
		public decimal ExtCerdit3 { get { return _ExtCerdit3 ?? default(decimal); } set { _ExtCerdit3 = value; } }

        [DBColumn(Alias = "自定义积分3", CanBeNull = true)]
		private decimal? _ExtCerdit3;

		/// <summary>
        /// 自定义积分4
		/// </summary>
		public decimal ExtCerdit4 { get { return _ExtCerdit4 ?? default(decimal); } set { _ExtCerdit4 = value; } }

        [DBColumn(Alias = "自定义积分4", CanBeNull = true)]
		private decimal? _ExtCerdit4;

		/// <summary>
        /// 自定义积分5
		/// </summary>
		public decimal ExtCerdit5 { get { return _ExtCerdit5 ?? default(decimal); } set { _ExtCerdit5 = value; } }

        [DBColumn(Alias = "自定义积分5", CanBeNull = true)]
		private decimal? _ExtCerdit5;

		/// <summary>
        /// 自定义积分6
		/// </summary>
		public decimal ExtCerdit6 { get { return _ExtCerdit6 ?? default(decimal); } set { _ExtCerdit6 = value; } }

        [DBColumn(Alias = "自定义积分6", CanBeNull = true)]
		private decimal? _ExtCerdit6;

		/// <summary>
        /// 自定义积分7
		/// </summary>
		public decimal ExtCerdit7 { get { return _ExtCerdit7 ?? default(decimal); } set { _ExtCerdit7 = value; } }

        [DBColumn(Alias = "自定义积分7", CanBeNull = true)]
		private decimal? _ExtCerdit7;

		/// <summary>
        /// 自定义积分8
		/// </summary>
		public decimal ExtCerdit8 { get { return _ExtCerdit8 ?? default(decimal); } set { _ExtCerdit8 = value; } }

        [DBColumn(Alias = "自定义积分8", CanBeNull = true)]
		private decimal? _ExtCerdit8;

		/// <summary>
		/// 状态
		/// </summary>
		public short State { get { return _State ?? default(short); } set { _State = value; } }

		[DBColumn(Alias="状态", DefaultValue="0")]
		private short? _State;

		/// <summary>
        /// 开户申请时间
		/// </summary>
		public DateTime CreatedTime { get { return _CreatedTime ?? default(DateTime); } set { _CreatedTime = value; } }

        [DBColumn(Alias = "开户申请时间", DefaultValue = "getdate()")]
		private DateTime? _CreatedTime;

		/// <summary>
        /// 开户审核时间
		/// </summary>
		public DateTime ModifiedTime { get { return _ModifiedTime ?? default(DateTime); } set { _ModifiedTime = value; } }

        [DBColumn(Alias = "开户审核时间", CanBeNull = true)]
		private DateTime? _ModifiedTime;

		/// <summary>
		/// 是否删除
		/// </summary>
		public bool IsDeleted { get { return _IsDeleted ?? default(bool); } set { _IsDeleted = value; } }

		[DBColumn(Alias="是否删除", DefaultValue="0")]
		private bool? _IsDeleted;

		/// <summary>
		/// 网站标签
		/// </summary>
		public string SiteTag { get { return _SiteTag; } set { _SiteTag = value; } }

		[DBColumn(Alias="网站标签", CanBeNull=true, Length="16")]
		private string _SiteTag;

	}
}
